package com.speechb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.speechb.entity.KeyValue;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 键值对表 Mapper 接口
 * </p>
 *
 * @author llj
 * @since 2019-09-01
 */
public interface KeyValueMapper extends BaseMapper<KeyValue> {
     void insertKeyValue(String key, String value, String desc);
     String findValueByKey(String key);
     void deleteByKey(String key);
     List<KeyValue> findAllValue();
     List<KeyValue> findListOfAdmin(@Param("_order") String order, @Param("search") String search);

    int update(int id,String key_name,String content);

}
